import request from "@/utils/request";
export function publishAnnouncement(data) {
    return request({
        url: "/api/v1/announcement/publishAnnouncement	",
        method: "post",
        data,
    });
}
// 获取公告列表
export function getAnnouncementList(limit, page) {
    return request({
        url: `/api/v1/announcement/getAnnouncementList/${limit}/${page}`,
        method: "get",
    });
}
// 模糊搜索公告
export function SearchAnnouncements(fuzzyName, limit, page) {
    return request({
        url: `/api/v1/announcement/query/fuzzy/${fuzzyName}/${limit}/${page}`,
        method: "get",
    });
}
// 编辑公告
export function EditAnnouncement(data) {
    return request({
        url: "/api/v1/announcement/alter",
        method: "put",
        data
    });
}
// 删除公告
export function DeleteAnnouncement(data) {
    return request({
        url: `/api/v1/announcement/delete`,
        method: "delete",
        data
    });
}
// 获取公告内容
export function getAnnouncementContent(id) {
    return request({
        url: `/api/v1/announcement/refreshAnnouncement/${id}`,
        method: "get",
    });
}
// 批量删除公告
export function BatchDeleteAnnouncement(data) {
    return request({
        url: `/api/v1/announcement/batch/delete`,
        method: "delete",
        data
    });
}